/// _card.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-

.card {
  position: relative;
  display: block;
  background-color: $cardBackground;
  width: 100%;
  margin-top: 24px;
  margin: $baseLineHeight 0;
  box-shadow: 0 3px 0 0 #d7d7d7;
  border-radius: $baseBorderRadius;
  border: 1px solid #d7d7d7;
}

.card .navbar {
  margin-bottom: 0;
}

.card-title,
.card .navbar-inner {
  background: none;
  border: none;
  box-shadow: none;
  border-bottom: 1px solid $navbarBorder;
  border-radius: 0;
  letter-spacing: normal;
  padding: $fontSizeSmall $baseLineHeight;
}

.card-block {
  border-bottom: 1px solid #eee;
  padding: 12px 18px;
  display: block;
  @include clearfix();
}

#section:not(.card-block) {
  margin-top: $baseLineHeight;
}

.card-actions {
  margin: 0 18px;
}

.card .form-actions {
  margin-bottom: 0;
  margin-top: 0;
  background-color: initial;
  border-top: none;
}

.card-block .form-actions {
  padding-left: 0;
}

.card-block .form-horizontal .form-actions {
  padding-left: $horizontalComponentOffset;
}

.card .card {
  border: 0;
  box-shadow: none;
  margin: 0;
  .card-title {
    padding-top: 0;
  }
}
